package com.wwmz.pattern.factory.job;

/**
 * Created by wumz on 2020/9/16 16:12
 */
public class PayTest {

    public static void main(String[] args) {
        ChinaPayFactory chinaPayFactory = new ChinaPayFactory();
        chinaPayFactory.iAliPay().aliPay();
        chinaPayFactory.iwxPay().wxPay();
        chinaPayFactory.unionPay().unionpay();

        AmericaPayFactory americaPayFactory = new AmericaPayFactory();
        americaPayFactory.iAliPay().aliPay();
        americaPayFactory.iwxPay().wxPay();
        americaPayFactory.unionPay().unionpay();

        RussiaPayFactory russiaPayFactory = new RussiaPayFactory();
        russiaPayFactory.iAliPay().aliPay();
        russiaPayFactory.iwxPay().wxPay();
        russiaPayFactory.unionPay().unionpay();
    }
}
